Assignment Statement

Syntax samples

<variable, array element, or attribute> = <numeric expression>

Description

Assigns the value of a numeric expression to a designated variable, array element, or attribute.

Valid In

Any Logic

Example

Var1 = 300
Attr2 = Clock(hr) - Attr3

Please Note

If you assign an expression that evaluates to a real number to a variable, array, or attribute of type integer, the number truncates unless you use the ROUND() function.